import Enum from "@/const/Enum"

export default class CommonStatusEnum {
  //初始
  public static readonly init: Enum = new Enum('init', '初始')
  //审核中
  public static readonly audit: Enum = new Enum('audit', '审核中','error_outline','warning')
  //已认证
  public static readonly certified: Enum = new Enum('certified', '已认证')
  //未通过认证
  public static readonly notCertified: Enum = new Enum('notCertified', '未通过认证')
  //违规
  public static readonly violation: Enum = new Enum('violation', '违规','block','error')
  //违规
  public static readonly noViolation: Enum = new Enum('noViolation', '不违规','check_circle_outline','info')
  //启用
  public static readonly enable: Enum = new Enum('enable', '启用')
  //禁用
  public static readonly disable: Enum = new Enum('disable', '禁用')
  //删除
  public static readonly delete: Enum = new Enum('delete', '删除')

  public static valueOf(value: string): CommonStatusEnum {
    return CommonStatusEnum[value]
  }
}
